extends ScrollContainer

# 技能滚动条
var is_drag = false
var position_x_last = 0

func _on_gui_input(event:InputEvent):
	
	if event is InputEventMouseButton:
		if event.is_pressed():
			is_drag = true
			position_x_last = event.position.x
		else :
			is_drag = false
	if is_drag:
		var offset = position_x_last - event.position.x 
		position_x_last = event.position.x
		scroll_horizontal += offset
